//ybzuo
#pragma once
#include <string>
#include <map>

class image;
class text;
class line;
class screen
{
public:
	screen(void);
	~screen(void);
	void load(std::string filename);
	void render();
	inline bool can_show(){return m_show;}
	static void set_screen_size(int w,int h);
	void set_show(bool show){m_show=show;}
private:
	bool m_show;
	std::string m_screen_file;
	std::string m_page_name;
	int m_size;
	std::map<std::string,image*> m_images;
	std::map<std::string,image*>::iterator m_image_it;
	std::map<std::string,text*>    m_texts;
	std::map<std::string,text*>::iterator m_text_it;
	std::map<std::string,line*> m_lines;
	std::map<std::string,line*>::iterator m_line_it;
	//SCREENS SIZE
	static int m_screen_width;
	static int m_screen_height;


};
